package org.lanqiao.ssm.facede.auth.facede;

import org.lanqiao.ssm.common.exceptions.LoginException;
import org.lanqiao.ssm.common.facede.BaseQueryFacedeI;
import org.lanqiao.ssm.facede.auth.model.User;

import com.github.pagehelper.PageInfo;

public interface UserQueryFacedeI extends
		BaseQueryFacedeI<User, String> {

	public User login(User u) throws LoginException;

	public User findUserByLoginName(String loginName) throws LoginException;

	public  PageInfo<User> findUserAndRoles(User user, int page, int pageShow) throws LoginException;;

}
